import SvgIcon from '@/components/svg-icon/index.vue'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import type { Plugin } from 'vue'
// 注册全局组件
export default {
  install(app) {
    // 注册element-plus图标
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component)
    }
    app.component('SvgIcon', SvgIcon)
  },
} as Plugin
